<?php 
$url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$posQ = strpos($url, '?');
if ($posQ) {
	$url = substr($url, 0,$posQ);
}
$url = urlencode($url);      
?>
<div class="social">
	<a target="_blank" href="http://www.livejournal.com/update.bml?event=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/li.png" alt="LiveJournal"></a>
    <a target="_blank" href="http://connect.mail.ru/share?share_url=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/mail.png" alt="Мой мир"></a>
    <a target="_blank" href="http://vkontakte.ru/share.php?url=<?=$url?>" ><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/vk.png" alt="ВКонтакте"></a>
    <a target="_blank" href="https://twitter.com/share?url=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/t.png" alt="Твиттер"></a>
    <a target="_blank" href="http://www.facebook.com/sharer.php?u=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/fb.png" alt="Facebook"></a>
	<a target="_blank" href="https://plus.google.com/share?url=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/gplus.png" alt="Google+"></a>
	<a target="_blank" href="http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl=<?=$url?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ico/ok.png" alt="Одноклассники"></a>
</div>